<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="jakarta.tags.core" %>
<!DOCTYPE html>
<html>
<head>
    <title>${title} - HiLover 后台管理</title>
    <link rel="stylesheet" href="/static/css/style.css">
    <link rel="stylesheet" href="/static/css/admin.css">
</head>
<body class="admin-body">
    <div class="admin-sidebar">
        <div class="admin-logo">
            <a href="/admin">HiLover管理</a>
        </div>
        <nav class="admin-nav">
            <a href="/admin" class="${active == 'dashboard' ? 'active' : ''}">控制台</a>
            <a href="/admin/users" class="${active == 'users' ? 'active' : ''}">用户管理</a>
            <a href="/admin/couples" class="${active == 'couples' ? 'active' : ''}">情侣管理</a>
            <a href="/admin/comments" class="${active == 'comments' ? 'active' : ''}">评论管理</a>
            <a href="/admin/quotes" class="${active == 'quotes' ? 'active' : ''}">名言管理</a>
            <a href="/" target="_blank">访问前台</a>
        </nav>
    </div>
    
    <div class="admin-main">
        <div class="admin-header">
            <div class="admin-breadcrumb">
                ${title}
            </div>
            <div class="admin-user">
                <span>${sessionScope.loginUser.username}</span>
                <a href="/logout">退出</a>
            </div>
        </div>
        
        <div class="admin-content">
            <jsp:include page="../${page}.jsp"/>
        </div>
    </div>
</body>
</html> 